var searchv = new Vue({
	el: "#app",
	data:{
		s5,
		curId: 0,
        items: [
          {item: '待使用'},
          {item: '已使用'},
          {item: '已过期'},
        ],
		voucher:''
	},
	computed:{
		
	},
	watch:{
		
	},
	created:function(){
		
	},
	mounted: function() {
		this.getCashcard()
	},
	methods:{
		tab (index) {
			this.curId = index;
		},
		getCashcard(){
			var that = this;
			s5.initData({url:'/cashcard-my',type:"post"},(res)=>{
				var data = JSON.parse(res)
				that.voucher = data.data
			})
		},
		goDetail(id){
			window.location.href = "cashcard-detail.html?id="+id
		}
	}
})